package com.zj.config;

import com.zj.pojo.Dog;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class MyConfig {

    @Bean
    @Profile("test")
    Dog creaeteDog(){
        return new Dog("teset");
    }

    @Bean
    @Profile("pro")
    Dog creaeteDog2(){
        return new Dog("pro");
    }
}
